﻿@model EDB.SmoothStreaming.Settings.VideoTypePartSettings
@{
    Style.Require("EDBSmoothStreaming");
    Script.Require("EDBSmoothStreaming").AtHead();
}

<fieldset>
    @Html.LabelFor(m => m.ThumbnailFormatDefault, T("Thumbnail Format"))
    @foreach (EDB.SmoothStreaming.Models.ThumbnailFormat value in Enum.GetValues(typeof(EDB.SmoothStreaming.Models.ThumbnailFormat))) {
        string isChecked = Model.ThumbnailFormatDefault == value ? "checked=\"checked\"" : "";
        <input id="@value.ToString()" name="@Html.FieldNameFor(m => m.ThumbnailFormatDefault)" type="radio" value="@value.ToString()" @isChecked />
        <label for="@value.ToString()" class="forcheckbox">@value.ToString()</label> 
    }
</fieldset>
<fieldset>
    <label for="@Html.FieldIdFor(m => m.ThumbnailWidthDefault)">@T("Default Thumbnail Width")</label>
    @Html.EditorFor(m => m.ThumbnailWidthDefault)
</fieldset>
<fieldset>
    <label for="@Html.FieldIdFor(m => m.ThumbnailHeightDefault)">@T("Default Thumbnail Height")</label>
    @Html.EditorFor(m => m.ThumbnailHeightDefault)
</fieldset>
<fieldset>
    <label for="@Html.FieldIdFor(m => m.ThumbnailCountDefault)">@T("Default Thumbnail Count")</label>
    @Html.EditorFor(m => m.ThumbnailCountDefault)
</fieldset>
<fieldset>
    @Html.HiddenFor(m => m.VideoStreamsDefault)
    <div class="VideoStreamsHeader"><span>@T("Stream")</span><span>@T("Width")</span><span>@T("Height")</span><span>@T("Bitrate")</span><div style="clear:both;"></div></div>
    <div id="VideoStreamsContainer" class="VideoStreams"></div>
    <div><a href="javascript:AddStream()">@T("add")</a></div>
</fieldset>
<fieldset>
    <label for="@Html.FieldIdFor(m => m.PlayerWidthDefault)">@T("Default Player Width")</label>
    @Html.EditorFor(m => m.PlayerWidthDefault)
</fieldset>
<fieldset>
    <label for="@Html.FieldIdFor(m => m.PlayerHeightDefault)">@T("Default Player Height")</label>
    @Html.EditorFor(m => m.PlayerHeightDefault)
</fieldset>

@using(Script.Foot()) {
<script type="text/javascript">
//<![CDATA[
    $(function () {
        VideoInit('@Html.FieldIdFor(m => m.VideoStreamsDefault)');
    });
//]]>
</script>
}